<template>
  <div class="box">
    <div class="vip">会员中心</div>
    <div class="look">查看更多VIP内容</div>
    <div class="xzimg">
      <div class="swiper-container">
        <div class="swiper-wrapper">
          <div class="swiper-slide">
            <img src="../../assets/icon/banner01.png" alt="">
          </div>
          <div class="swiper-slide"><img src="../../assets/icon/banner02.png" alt=""></div>
          <div class="swiper-slide"><img src="../../assets/icon/banner03.png" alt=""></div>

        </div>
      </div>
    </div>

            <div class="all">进入会员中心</div>

  </div>
</template>

<script>
  export default {
    name: "xzmm",
    methods:{
      fn(){
        let mySwiper = new Swiper('.swiper-container', {
          loop : true,
          centeredSlides: true,
          slidesPerView: "auto",
          autoplay:{
            delay:2000,
            disableOnInteraction: false,
          },

          effect:'coverflow',
          disableOnInteraction: false
        })
      }
    },
    mounted(){
      this.fn();
    }
  }
</script>

<style scoped>
  *{
    margin: 0px;
    padding: 0px;
  }
  .box {
    width: 100%;
    height: 350px;
    margin-top: 30px;
    background: linear-gradient(to right, #ccc, #6081A9, #753F37, #CBCCCA);
  }
  .vip{
    width: 100vw;
    height: 50px;
    line-height: 70px;
    font-size: 16px;
    color: #D4D3D0;
    text-align: center;
    font-weight: bold;
  }
    .look{
      width: 100vw;
      height: 30px;
      line-height: 20px;
      font-size: 14px;
      color:#bcadac;
      text-align: center;
    }
    .xzimg {
      height: 200px;
      box-sizing: border-box;
    }
      .swiper-container {
        width: 100%;
      }
      .swiper-slide {
        width: 80%;
        transform: scale(0.9);
      }
       img {
      width: 100%;
      height: 200px;
        }
      .swiper-slide-active {

        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
      }

      span{
        display: inline-block;
        padding: 25px 45px;
        margin-top: 60px;
        color: white;
        font-size: 40px;
        border: 3px solid #594b4f;
        border-radius: 50px;
      }
  .all{
    width: 120px;
    height: 25px;
    line-height: 25px;
    font-size: 12px;
    color: #E8E7E5;
    border: 1px solid #AAA9AA;
    border-radius: 50px;
    text-indent: 16px;
    margin: 20px auto;
    background:  url("../../assets/img/xiayige2.png") no-repeat 92px 5px ;

  }
</style>
